<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('score/index_student')}">{:lang('ADMIN_NAV_INDEX')}</a></li>
        <li class="active"><a href="{:url('score/add_student')}">{:lang('ADMIN_NAV_ADD')}</a></li>
        <!--<li><a  href="{:url('nav/edit')}" >{:lang('ADMIN_NAV_EDIT')}</a></li>-->
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('score/addPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label">
                <span class="x-red">*</span>学生姓名
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" value="{$student.name}" class="layui-input" disabled="true" readonly="true">
                <input type="hidden" name="sid" value="{$sid}" class="layui-input">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">课程:</label>
            <div class="col-md-6 col-sm-10">
                <div class="checkbox">
                    <select name="subject_id" class="form-control" >
                        <option value="">请选择</option>
                        <foreach name="date" item="v">
                            <option value="{$v.id}">{$v.course_name}</option>
                        </foreach>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">学期:</label>
            <div class="col-md-6 col-sm-10">
                <div class="checkbox">
                    <select name="term_id" class="form-control" >
                        <option value="">请选择</option>
                        <foreach name="term" item="v">
                            <option value="{$v.id}">{$v.term_name}</option>
                        </foreach>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">
                <span class="x-red">*</span>成绩
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" name="score" class="layui-input">
            </div>
        </div>
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
            <a class="btn btn-default" href="{:url('score/index')}">返回</a>
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>